﻿namespace Cap
{
    public interface IPub<TCapStrategy>
        where TCapStrategy : class, ICapStrategy
    {
        Task PersistAsync(ICloudEvent @event);
        Task PublishAsync(ICloudEvent @event);
        Task DispatchAsync();
    }
}
